﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL;

namespace BLL
{
    public class Movie
    {
        private string Name { get; set; }
        private string Director { get; set; }
        private string Actor { get; set; }

        public IQueryable<DAL.Movies> Message()
        {
            //声明数据层UserDate的实例
            MovieData ud = new MovieData();
            //调用数据层查询信息的方法，返回查询到的对象
            return ud.MessageData();
        }
        //查询最热电影方法
        public DAL.Movies HotMovie()
        {
            MovieData c = new MovieData();
            return c.Hot(); 
        }
         public IQueryable<DAL.Movies> showMovie()
        {
            MovieData cd = new MovieData();
            return cd.Smovie();

        }
    }
}
